package com.ruoyi.disasterassessment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.disasterassessment.mapper.DisasterAssessmentSightMapper;
import com.ruoyi.disasterassessment.domain.DisasterAssessmentSight;
import com.ruoyi.disasterassessment.service.IDisasterAssessmentSightService;

/**
 * 安全评估模型-测点Service业务层处理
 * 
 * @author hcc
 * @date 2023-12-20
 */
@Service
public class DisasterAssessmentSightServiceImpl implements IDisasterAssessmentSightService 
{
    @Autowired
    private DisasterAssessmentSightMapper disasterAssessmentSightMapper;

    /**
     * 查询安全评估模型-测点
     * 
     * @param id 安全评估模型-测点主键
     * @return 安全评估模型-测点
     */
    @Override
    public DisasterAssessmentSight selectDisasterAssessmentSightById(Long id)
    {
        return disasterAssessmentSightMapper.selectDisasterAssessmentSightById(id);
    }

    /**
     * 查询安全评估模型-测点列表
     * 
     * @param disasterAssessmentSight 安全评估模型-测点
     * @return 安全评估模型-测点
     */
    @Override
    public List<DisasterAssessmentSight> selectDisasterAssessmentSightList(DisasterAssessmentSight disasterAssessmentSight)
    {
        return disasterAssessmentSightMapper.selectDisasterAssessmentSightList(disasterAssessmentSight);
    }

    /**
     * 新增安全评估模型-测点
     * 
     * @param disasterAssessmentSight 安全评估模型-测点
     * @return 结果
     */
    @Override
    public int insertDisasterAssessmentSight(DisasterAssessmentSight disasterAssessmentSight)
    {
        return disasterAssessmentSightMapper.insertDisasterAssessmentSight(disasterAssessmentSight);
    }

    /**
     * 修改安全评估模型-测点
     * 
     * @param disasterAssessmentSight 安全评估模型-测点
     * @return 结果
     */
    @Override
    public int updateDisasterAssessmentSight(DisasterAssessmentSight disasterAssessmentSight)
    {
        return disasterAssessmentSightMapper.updateDisasterAssessmentSight(disasterAssessmentSight);
    }

    /**
     * 批量删除安全评估模型-测点
     * 
     * @param ids 需要删除的安全评估模型-测点主键
     * @return 结果
     */
    @Override
    public int deleteDisasterAssessmentSightByIds(Long[] ids)
    {
        return disasterAssessmentSightMapper.deleteDisasterAssessmentSightByIds(ids);
    }

    /**
     * 删除安全评估模型-测点信息
     * 
     * @param id 安全评估模型-测点主键
     * @return 结果
     */
    @Override
    public int deleteDisasterAssessmentSightById(Long id)
    {
        return disasterAssessmentSightMapper.deleteDisasterAssessmentSightById(id);
    }
}
